<?

include_once "accesscontrol.php";
include_once "index.php";

$q1 = "select * from job_admin_login order by binary aid";
$r1 = mysql_query($q1) or die(mysql_error());

echo "<br><table align=center width=500><tr><td align=center><span class=HeaderClass><font size=3><b>Admin</b></font></span></td></tr></table>";
echo "<br><table align=center width=500 border=1 rules=rows cellspacing=0 cellpadding=3 bordercolor=black class=BlackText>";
echo "<tr class=TableHead bgcolor=#736F6E><td><font color=#FFFFFF> Admin ID </font></td><td><font color=#FFFFFF>Name </font></td> <td><font color=#FFFFFF>Email </font></td> <td align=center><font color=#FFFFFF> Manage </font></td></tr>";
while($a1 = mysql_fetch_array($r1))
{
echo "	
	<tr>
	<td> $a1[aid] </td>
	<td> $a1[name]</td>
	<td> $a1[email]</td>
	<td align=center> <a class=TNA href=\"edit_admin.php?daid=$a1[aid]\">Edit </a>  |  <a class=TNA href=\"delete_admin.php?daid=$a1[aid]\">Delete </a></td>
	</tr>";
}
echo "</table>";
?>

<br><center><span class=BlackLink>To add a new admin at your level, <a class=TNA href=add_admin.php> click here </a></span></center>
<? include_once('../footer.php'); ?>